package com.datasync.batch;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.Map;

@Getter
@Setter
@ConfigurationProperties(prefix = "sync.jobs")
public class SyncJobProperties {
    private String jobName;
    private String sourceTable;
    private String targetTable;
    private Map<String, String> fieldMappings;
    private String syncMode;
    private String cron;
    
    // 新增增量同步参数
    private LocalDateTime lastSyncTime;
    private String timestampColumn = "update_time";
    private Duration syncInterval = Duration.ofHours(1);
}